<div id="login">
    <div id="messages">
    <?php
    if(isset($this->messages))
    {
        echo "<ul>\n";
        foreach ($this->messages as $message) {
            echo "\t<li>$message</li>\n";
        }
        echo "</ul>";
    }
    ?>
    </div>
    <form action="<?php echo $this->url(array('action' => 'login', 'controller' => 'index')); ?>" method="post">
        <div>
            <?php echo $this->formLabel('username', 'Username'); ?>
            <?php echo $this->formText('username');?>
        </div>
        <div>
            <?php echo $this->formLabel('password', 'Password'); ?>
            <?php echo $this->formPassword('password');?>
        </div>
        <div>
            <?php echo $this->formSubmit('login', 'login'); ?>
        </div>
    </form>
</div>








































